import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false


//全局样式
import "@/assets/css/global.css"


//应用element-ui
import "@/plugins/element"


//引用iconfont样式
import "@/assets/iconfont/iconfont.css"


//引入axios
import axios from 'axios'

Vue.prototype.$http = axios

axios.interceptors.request.use((config) => {
  let token = sessionStorage.getItem("token")
  config.headers.Authorization = token
  return config
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
